﻿namespace game.character.weapon
{

    /// <summary>
    /// The first weapon.
    /// </summary>
    public class EnemyWeapon : game.character.weapon.Weapon
    {

        Microsoft.Xna.Framework.Graphics.Texture2D BulletTexture;

        /// <summary>
        /// Simple constructor.
        /// </summary>
        /// <param name="Component"></param>
        public EnemyWeapon(Microsoft.Xna.Framework.Graphics.Texture2D texture) : base()
        {
            BulletTexture = texture;
            Damage = 150;
        }

        /// <summary>
        /// Shoot the bullet.
        /// </summary>
        /// <param name="BulletManager"></param>
        public override void Shoot(game.character.bullet.BulletManager BulletManager, Microsoft.Xna.Framework.Vector2 Origin,
            Microsoft.Xna.Framework.Vector2 Target, Microsoft.Xna.Framework.Vector2 AdditionalVelocity)
        {
            game.character.bullet.EnemyBullet bullet = new game.character.bullet.EnemyBullet(BulletTexture, Origin, Target, AdditionalVelocity);
            bullet.Damage = Damage;

            BulletManager.Emit(bullet);
        }

    }

}